home *** CD-ROM | disk | FTP | other *** search
- Path: news.iadfw.net!usenet
- From: Mark Nelson <markn@airmail.net>
- Newsgroups: comp.lang.c++
- Subject: Re: serial comms
- Date: Sat, 20 Apr 1996 22:04:15 -0500
- Organization: Guest user
- Message-ID: <3179A5AF.2869@airmail.net>
- References: <78837365wnr@dunedain.demon.co.uk>
- NNTP-Posting-Host: dal12-23.ppp.iadfw.net
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0GoldB2 (Win95; I)
-
- stephen wrote:
- >
- > I have linked two PC's through their serial ports using a null modem
- > cable. I need a program on one PC to pass data to another program on
- > the second PC. To do this I believe I have to use the bioscom() command
- > but I am having some difficulty. How could I use the command to send
- > an array from one program to the other through the COM ports. Could
- > anyone help?
- >
- >
-
- Generally you are going to have trouble passing data using the BIOS commands.
- Under Windows or OS/2 you have built in support in the operating system for
- serial ports, but DOS is lacking in this area.
-
- The solution is to add an interrupt driven interface to your program. You
- can read an article with full source code on my home page for a quick and
- dirty solution. Check under "Magazine Articles". If that leaves you
- wanting more, you might want to follow the links to my book "Serial
- Communications: A C++ Developer's Guide." Unlike the article, it isn't free,
- but it does contain a lot more detailed info.
-
- Mark Nelson
- http://web2.airmail.net/markn
-